﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using ERP_RORZE.Tool.UserControls;
using ERP_RORZE.Tool.Reports;
namespace ERP_RORZE.Tool.Forms
{
	public partial class frm_BasicListTool : DevExpress.XtraEditors.XtraForm
	{
		public frm_BasicListTool()
		{
			InitializeComponent();
		}

		private void navFrequency_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
		{
			Cursor.Current = Cursors.WaitCursor;
			var ucFrequency = new ucFrequency();
			splitContainerControl1.Panel2.Controls.Clear();
			splitContainerControl1.Panel2.Controls.Add(ucFrequency);
			ucFrequency.Dock = DockStyle.Fill;
			Cursor.Current = Cursors.Default;

		}

		private void navMistake_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
		{
			Cursor.Current = Cursors.WaitCursor;
			var ucMistake = new ucMistake();
			splitContainerControl1.Panel2.Controls.Clear();
			splitContainerControl1.Panel2.Controls.Add(ucMistake);
			ucMistake.Dock = DockStyle.Fill;
			Cursor.Current = Cursors.Default;
		}

		private void navRotate_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
		{
			Cursor.Current = Cursors.WaitCursor;
			var ucRotate = new ucRotate();
			splitContainerControl1.Panel2.Controls.Clear();
			splitContainerControl1.Panel2.Controls.Add(ucRotate);
			ucRotate.Dock = DockStyle.Fill;
			Cursor.Current = Cursors.Default;
		}

		private void navProcessStatus_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
		{
			Cursor.Current = Cursors.WaitCursor;
			var ucPStatus = new ucProcessStatus();
			splitContainerControl1.Panel2.Controls.Clear();
			splitContainerControl1.Panel2.Controls.Add(ucPStatus);
			ucPStatus.Dock = DockStyle.Fill;
			Cursor.Current = Cursors.Default;
		}

		private void navToolStatus_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
		{
			Cursor.Current = Cursors.WaitCursor;
			var ucTStatus = new ucToolStatus();
			splitContainerControl1.Panel2.Controls.Clear();
			splitContainerControl1.Panel2.Controls.Add(ucTStatus);
			ucTStatus.Dock = DockStyle.Fill;
			Cursor.Current = Cursors.Default;
		}

		private void navKind_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
		{
			Cursor.Current = Cursors.WaitCursor;
			var ucKind = new ucKind();
			splitContainerControl1.Panel2.Controls.Clear();
			splitContainerControl1.Panel2.Controls.Add(ucKind);
			ucKind.Dock = DockStyle.Fill;
			Cursor.Current = Cursors.Default;
		}

		private void navTool_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
		{
			Cursor.Current = Cursors.WaitCursor;
			var ucTool = new ucTool();
			splitContainerControl1.Panel2.Controls.Clear();
			splitContainerControl1.Panel2.Controls.Add(ucTool);
			ucTool.Dock = DockStyle.Fill;
			Cursor.Current = Cursors.Default;
		}

		private void navToolGroup_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
		{
			Cursor.Current = Cursors.WaitCursor;
			var ucToolGroup = new ucToolGroup();
			splitContainerControl1.Panel2.Controls.Clear();
			splitContainerControl1.Panel2.Controls.Add(ucToolGroup);
			ucToolGroup.Dock = DockStyle.Fill;
			Cursor.Current = Cursors.Default;
		}

		private void navQTool_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
		{
			Cursor.Current = Cursors.WaitCursor;
			var ucQTool = new ucQTool();
			splitContainerControl1.Panel2.Controls.Clear();
			splitContainerControl1.Panel2.Controls.Add(ucQTool);
			ucQTool.Dock = DockStyle.Fill;
			Cursor.Current = Cursors.Default;
		}

		private void navSupplier_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
		{
			Cursor.Current = Cursors.WaitCursor;
			var ucSupplier = new ucSupplier();
			splitContainerControl1.Panel2.Controls.Clear();
			splitContainerControl1.Panel2.Controls.Add(ucSupplier);
			ucSupplier.Dock = DockStyle.Fill;
			Cursor.Current = Cursors.Default;
		}

		private void navMaker_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
		{
			Cursor.Current = Cursors.WaitCursor;
			var ucMaker = new ucMaker();
			splitContainerControl1.Panel2.Controls.Clear();
			splitContainerControl1.Panel2.Controls.Add(ucMaker);
			ucMaker.Dock = DockStyle.Fill;
			Cursor.Current = Cursors.Default;
		}

		private void navImport_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
		{
			Cursor.Current = Cursors.WaitCursor;
			var ucImport = new ucImport();
			splitContainerControl1.Panel2.Controls.Clear();
			splitContainerControl1.Panel2.Controls.Add(ucImport);
			ucImport.Dock = DockStyle.Fill;
			Cursor.Current = Cursors.Default;
		}

		private void navJustNew_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
		{
			Cursor.Current = Cursors.WaitCursor;
			var ucJustNew = new ucJustNew();
			splitContainerControl1.Panel2.Controls.Clear();
			splitContainerControl1.Panel2.Controls.Add(ucJustNew);
			ucJustNew.Dock = DockStyle.Fill;
			Cursor.Current = Cursors.Default;
		}

		private void navBorrow_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
		{
			Cursor.Current = Cursors.WaitCursor;
			var ucBorrow = new ucBorrow();
			splitContainerControl1.Panel2.Controls.Clear();
			splitContainerControl1.Panel2.Controls.Add(ucBorrow);
			ucBorrow.Dock = DockStyle.Fill;
			Cursor.Current = Cursors.Default;
		}

		private void navBroken_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
		{
			Cursor.Current = Cursors.WaitCursor;
			var ucBroken = new ucBroken();
			splitContainerControl1.Panel2.Controls.Clear();
			splitContainerControl1.Panel2.Controls.Add(ucBroken);
			ucBroken.Dock = DockStyle.Fill;
			Cursor.Current = Cursors.Default;
		}

		private void navReturn_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
		{
			Cursor.Current = Cursors.WaitCursor;
			var ucReturn = new ucReturn();
			splitContainerControl1.Panel2.Controls.Clear();
			splitContainerControl1.Panel2.Controls.Add(ucReturn);
			ucReturn.Dock = DockStyle.Fill;
			Cursor.Current = Cursors.Default;
		}

		private void navReport_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
		{
			Cursor.Current = Cursors.WaitCursor;
            //uc_rpt_Tool rp = new uc_rpt_Tool();
            //splitContainerControl1.Panel2.Controls.Clear();
            //splitContainerControl1.Panel2.Controls.Add(rp);
            //rp.Dock = DockStyle.Fill;
			Cursor.Current = Cursors.Default;
        }

        private void navBarReports_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;
            ucReportsList rp = new ucReportsList();
            splitContainerControl1.Panel2.Controls.Clear();
            splitContainerControl1.Panel2.Controls.Add(rp);
            rp.Dock = DockStyle.Fill;
            Cursor.Current = Cursors.Default;
        }

        private void navBarNewReport_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;
            ucReports rp = new ucReports();
            splitContainerControl1.Panel2.Controls.Clear();
            splitContainerControl1.Panel2.Controls.Add(rp);
            rp.Dock = DockStyle.Fill;
            Cursor.Current = Cursors.Default;
        }

        
	}
}